APP_NAME=client
SHARE_NAME=clienter
CFLAGS  +=-I /home/renhui/sqlite/include
LDFLAGS +=-L /home/renhui/sqlite/lib -lsqlite3

all:share
	gcc ${CFLAGS} client.c -L. -l${SHARE_NAME} ${LDFLAGS} -lsqlite3 -lzlog -o ${APP_NAME}

share:
	 gcc -shared -fPIC -o lib${SHARE_NAME}.so client_sq.c temp.c ${CFLAGS}

clean:
	rm -f ${APP_NAME}

disclean:clean
	rm -f *.o
	rm -f *.log
	rm -f *.log.*
	rm -f *.so
	rm -f *db
